package avicit.bdp.dms.tdm.dto;

import avicit.bdp.common.base.BaseDTO;
import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.Id;
import avicit.platform6.core.annotation.log.LogField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Table;


/** 
 * 资产API服务安全设置表实体
 * 
 */
@ApiModel(value = "ApiSettingDTO", description = "资产API服务安全设置表")
@Table(name = "bdp_asset_api_setting")
public class ApiSettingDTO extends BaseDTO {

	/**
	* 主键
	*
	*/
	@LogField
	@ApiModelProperty(value = "主键")
	@FieldRemark(column = "id", field = "id", name = "主键")
	@Column(name = "id")
	@Id
	@javax.persistence.Id
	private String id;

	/**
	 * 资产ID
	 * 
	 */
	@LogField
	@ApiModelProperty(value = "资产ID")
	@FieldRemark(column = "asset_id", field = "assetId", name = "资产ID")
	@Column(name = "asset_id")
    private String assetId;
	/**
	 * 白名单
	 * 
	 */
	@LogField
	@ApiModelProperty(value = "白名单")
	@FieldRemark(column = "while_list", field = "whileList", name = "白名单")
	@Column(name = "while_list")
    private String whileList;
	/**
	 * 黑名单
	 * 
	 */
	@LogField
	@ApiModelProperty(value = "黑名单")
	@FieldRemark(column = "black_list", field = "blackList", name = "黑名单")
	@Column(name = "black_list")
    private String blackList;
	/**
	 * 超时时间（毫秒）
	 * 
	 */
	@LogField
	@ApiModelProperty(value = "超时时间（毫秒）")
	@FieldRemark(column = "timeout", field = "timeout", name = "超时时间（毫秒）")
	@Column(name = "timeout")
    private Integer timeout;
	/**
	 * 访问频率（次/秒)
	 * 
	 */
	@LogField
	@ApiModelProperty(value = "访问频率（次/秒)")
	@FieldRemark(column = "frequency", field = "frequency", name = "访问频率（次/秒)")
	@Column(name = "frequency")
    private Integer frequency;

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	public String getAssetId() {
		return assetId;
	}

	public void setAssetId(String assetId) {
		this.assetId = assetId;
	}

	public String getWhileList() {
		return whileList;
	}

	public void setWhileList(String whileList) {
		this.whileList = whileList;
	}

	public String getBlackList() {
		return blackList;
	}

	public void setBlackList(String blackList) {
		this.blackList = blackList;
	}

	public Integer getTimeout() {
		return timeout;
	}

	public void setTimeout(Integer timeout) {
		this.timeout = timeout;
	}

	public Integer getFrequency() {
		return frequency;
	}

	public void setFrequency(Integer frequency) {
		this.frequency = frequency;
	}
}

